﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace SydEnergiDataService
{
    [Serializable]
    [DataContract]
    public class CabinetDto
    {
        [DataMember]
        public string CabinetId { get; set; }
        
        [DataMember]
        public AddressDto AddressDto { get; set; }

        [DataMember]
        public List<EntryDto> Entries { get; set; }

        [DataMember]
        public double Latitude { get; set; }
        
        [DataMember]
        public double Longitude { get; set; }

        public CabinetDto()
        {
            
        }

        public CabinetDto(string id, AddressDto addressDto, List<EntryDto> entries, double lat, double lon)
        {
            Entries = entries;
            CabinetId = id;
            AddressDto = addressDto;
            Latitude = lat;
            Longitude = lon;
        }
    }
}
